#/***************************************************************************
# *   Copyright (C) 2011  by TinySofts                                      *
# *   tinysofts@gmail.com                                                   *
# *   All Rights Reserved.                                                  *
# *                                                                         *
# *   This program is free software; you can redistribute it and/or modify  *
# *   it under the terms of the GNU General Public License as published by  *
# *   the Free Software Foundation; either version 2 of the License, or     *
# *   (at your option) any later version.                                   *
# *                                                                         *
# *   This program is distributed in the hope that it will be useful,       *
# *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
# *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
# *   GNU General Public License for more details.                          *
# *                                                                         *
# *   Refer to http://code.google.com/p/tinydict/                           *
# ***************************************************************************/

QT       += core gui sql

TARGET = TinyDict
TEMPLATE = app

QTPLUGIN  += qsqlite qcncodecs

SOURCES += main.cpp\
        mainwindow.cpp \
    tdict.cpp \
    dictzip.cpp \
    aboutdialog.cpp \
    func.cpp \
    dictinfo.cpp \
    babylondict.cpp

HEADERS  += mainwindow.h \
    tdict.h \
    dictzip.h \
    aboutdialog.h \
    dictinfo.h \
    babylondict.h \
    basedict.h

FORMS += \
    aboutdialog.ui \
    dictinfo.ui

RC_FILE += \
    tinydict.rc

linux-g++ {
LIBS += -lXft
}

# $$varName or $${varName} : Value of qmake variable at that point in the .pro file
# $$(varName) : Value of environment variable when qmake is run
# $(varName) : Value of environment variable when makefile is processed
# $$[varName] : Value of Qt configuration option

ZLIBPATH = $$(QTDIR)/src/3rdparty/zlib

INCLUDEPATH += $$ZLIBPATH

SOURCES+= \
     $$ZLIBPATH/adler32.c \
     $$ZLIBPATH/compress.c \
     $$ZLIBPATH/crc32.c \
     $$ZLIBPATH/deflate.c \
     $$ZLIBPATH/gzio.c \
     $$ZLIBPATH/inffast.c \
     $$ZLIBPATH/inflate.c \
     $$ZLIBPATH/inftrees.c \
     $$ZLIBPATH/trees.c \
     $$ZLIBPATH/uncompr.c \
     $$ZLIBPATH/zutil.c

RESOURCES += \
    tinydict.qrc

TRANSLATIONS = tinydict.zh.ts
